def sum_numbers(num):
    # 1. 出口
    if num == 1:
        return 1
    temp = sum_numbers(num - 1)
    return num + temp
result = sum_numbers(4)
print(result)